import Vue from 'vue';

// base components
import baseComponent from './base';
Vue.use(baseComponent);

import imChat from './im-chat';

import dragDialog from './drag-dialog';
import GisDragDialog from '@/components/dialog/gis-drag-dialog/index.vue';
import MisDragDialog from '@/components/dialog/mis-drag-dialog/index.vue';

export default {
  install() {
    // form component
    Vue.component('form-item', () => import('./form/form-item'));

    // dynamic-form
    Vue.component('dynamic-form', () => import('./dynamic-form/index'));
    Vue.component('table-form', () => import('./dynamic-form/table-form'));

    Vue.component('im-chat', imChat);
    Vue.component('drag-dialog', dragDialog);

    Vue.component('gis-drag-dialog', GisDragDialog);
    Vue.component('mis-drag-dialog', MisDragDialog);
  },
};
